Optimal. Leaf size=37 \[ \frac{\sin ^2(c+d x)}{2 a d}-\frac{\sin ^3(c+d x)}{3 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0803932, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111, Rules used = {2835, 2564, 30} \[ \frac{\sin ^2(c+d x)}{2 a d}-\frac{\sin ^3(c+d x)}{3 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2835
Rule 2564
Rule 30
Rubi steps
\begin{align*} \int \frac{\cos ^3(c+d x) \sin (c+d x)}{a+a \sin (c+d x)} \, dx &=\frac{\int \cos (c+d x) \sin (c+d x) \, dx}{a}-\frac{\int \cos (c+d x) \sin ^2(c+d x) \, dx}{a}\\ &=\frac{\operatorname{Subst}(\int x \, dx,x,\sin (c+d x))}{a d}-\frac{\operatorname{Subst}\left (\int x^2 \, dx,x,\sin (c+d x)\right )}{a d}\\ &=\frac{\sin ^2(c+d x)}{2 a d}-\frac{\sin ^3(c+d x)}{3 a d}\\ \end{align*}
Mathematica [A] time = 0.0927779, size = 28, normalized size = 0.76 \[ \frac{(3-2 \sin (c+d x)) \sin ^2(c+d x)}{6 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.02, size = 30, normalized size = 0.8 \begin{align*} -{\frac{1}{da} \left ({\frac{ \left ( \sin \left ( dx+c \right ) \right ) ^{3}}{3}}-{\frac{ \left ( \sin \left ( dx+c \right ) \right ) ^{2}}{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.982102, size = 39, normalized size = 1.05 \begin{align*} -\frac{2 \, \sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )^{2}}{6 \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.24017, size = 93, normalized size = 2.51 \begin{align*} -\frac{3 \, \cos \left (d x + c\right )^{2} - 2 \,{\left (\cos \left (d x + c\right )^{2} - 1\right )} \sin \left (d x + c\right )}{6 \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 14.8111, size = 224, normalized size = 6.05 \begin{align*} \begin{cases} \frac{6 \tan ^{4}{\left (\frac{c}{2} + \frac{d x}{2} \right )}}{3 a d \tan ^{6}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + 9 a d \tan ^{4}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + 9 a d \tan ^{2}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + 3 a d} - \frac{8 \tan ^{3}{\left (\frac{c}{2} + \frac{d x}{2} \right )}}{3 a d \tan ^{6}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + 9 a d \tan ^{4}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + 9 a d \tan ^{2}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + 3 a d} + \frac{6 \tan ^{2}{\left (\frac{c}{2} + \frac{d x}{2} \right )}}{3 a d \tan ^{6}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + 9 a d \tan ^{4}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + 9 a d \tan ^{2}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + 3 a d} & \text{for}\: d \neq 0 \\\frac{x \sin{\left (c \right )} \cos ^{3}{\left (c \right )}}{a \sin{\left (c \right )} + a} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.38533, size = 39, normalized size = 1.05 \begin{align*} -\frac{2 \, \sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )^{2}}{6 \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]